package org.ccheng.common.annotation;

public enum AttributeType {

    CUSTOM(null),
    NUM_REGEX("(?<=%s)([0-9]*)(?=<|\\])"),
    VALUE_REGEX("(?<=%s)\\S+(?=<|&nbsp;)"),
    A_TAG_REGEX("(?<=群修会:<a href='\\S{1,100}'>)\\S+(?=</a>)"),
    NUM_LEFT_REGEX("(?<=%s)\\S+(?=\\/\\S+)"),
    NUM_RIGHT_REGEX("(?<=%s\\S{0,10}\\/)\\S+(?=&nbsp;|<)"),
    USERNAME_REGEX("(?<=<label.{0,50}>).{0,50}(?=</label>)|(?<=/>昵称:).{0,20}(?=\\(\\d{1,5}级)|(?<=昵称:).{0,20}(?=\\(\\d{0,5}级)"),
    LEVEL_REGEX("(?<=\\()([0-9]*)(?=级)"),
    JOB_NAME_REGEX("([\\u4e00-\\u9fa5]*)(?=(</a> [\\u4e00-\\u9fa5]{0,1}))"),
    SEX_REGEX("(?<= )([\\u4e00-\\u9fa5]{0,1})(?=\\))"),
    TASK_PROGRESS_AWARD_NAME_REGEX("\\[%s[0-9]{0,2}\\]\\(.{0,5}\\)"),
    TASK_PROGRESS_AWARD_STATUS_REGEX("(?<=\\().{0,5}(?= \\))"),
    TASK_PROGRESS_AWARD_AWARD_REGEX("(?<=\\[完成度:\\d\\]\\(\\S{3} \\)(<a href='\\S{0,120}'>)?)\\S{0,4}(?=</a>|<br/>)");

    private String value;

    AttributeType(String regex) {
        this.value = regex;
    }

    public String getValue() {
        return value;
    }

}
